package com.chixing.day05_oop.word;

public final class Car {


    public int carNo ;
    public String carName ;

    private static Car car = new Car();

    private Car(){}

    public static Car getCar(){
        return car;
    }

    @Override
    public String toString() {
        return "Car{" +
                "carNo=" + carNo +
                ", carName='" + carName + '\'' +
                '}';
    }
}
